package util.AST.Expressao;

import util.AST.Terminal.Valor;

public class ExpressaoRelPrimaria extends ExpressaoRel {
	
	private Valor valor;
	
	public ExpressaoRelPrimaria(Valor valor){
		this.valor = valor;
	}
	
	public Valor getValor(){
		return this.valor;
	}
	
	public String toString(int level){
		int nextLevel = level+5;
		StringBuffer str = new StringBuffer();
		str.append("ExpRelPri\n");
		if ( this.valor != null ) {
			str.append(super.getSpaces(nextLevel) + "|-" + this.valor.toString(nextLevel));
		}
		return str.toString();
	}

}
